﻿/*
 ***************************************************************************
 * Microsoft Visual C# .NET
 * 名称：       App_Sales_SaleDetailsInfo
 * 类型：       控制层
 * 功能说明：   销售资料检索结果页面
 * 作者：       黄鑫
 * 创建日期：   2007/08/22
 * 修改日期     修改者      修改内容
 * 
 * 
 * ---
 ***************************************************************************
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Shpm.App.Master.Bean;
using Shpm.App.Master.Dao;
using System.Globalization;
using Shpm.App.Commons.Utils;

public partial class App_Search_SaleDetailsInfoForm : System.Web.UI.Page
{
    public String docTitle = "";
    public String docId = "";
    public String content = "";
    public String author = "";
    public String pubDate = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            this.ViewState["docType"] = Context.Items["docType"];
            this.ViewState["docId"] = Context.Items["docId"];
            this.ViewState["ParamPageIndex"] = Context.Items["ParamPageIndex"];
        }
        DocContractBean dataBean = new DocContractBean();
        dataBean.DocId  = Convert.ToInt32(this.ViewState["docId"].ToString());
        DocContractDao dao = new DocContractDao();
        DocContractBean dataResult = dao.FindByDocContract(dataBean);
        docTitle = dataResult.Title;
        docId = Convert.ToString(dataResult.DocId);
        content = dataResult.Content;
        author = dataResult.Author;
        pubDate = DateUtils.convertToString(dataResult.PubDate);
        
        
    }

    // 返回按钮
    protected void btnBack_Click(object sender, EventArgs e)
    {
        Context.Items["PAGE_BACK"] = "SaleDetailsInfo";
        Context.Items["docType"] = this.ViewState["docType"];
        Context.Items["ParamPageIndex"] = this.ViewState["ParamPageIndex"];
        // Server.Transfer("SaleSrhForm.aspx", true);
        ControllerUtils.Transfer(this.Context, "~/App/Search/SaleSrhForm.aspx", true);
    }
}
